package day01.day02;

import java.time.LocalDate;
import java.time.Month;
import java.util.Date;

/**
 * @author feng
 * @Date 2021/9/17 6:20
 *  localDate来处理日历类
 *  Date来处理相应的时间点
 */

public class day01 {
    public static void main(String[] args) {
        LocalDate date = LocalDate.of(1990, 12, 11);
        LocalDate localDate = date.plusDays(4);
        System.out.println(localDate);
        LocalDate date3 = LocalDate.now();  // 系统的日历
        System.out.println(date3);
        int year = date.getYear();
        Month month = date.getMonth();
        int day = date.getDayOfMonth();
        int day2 = date.getDayOfYear();
        System.out.println(day);
        System.out.println(day2);
        System.out.println(date);
        Date date1 = new Date();
        System.out.println(date1);
        Date date5 = new Date();
    }
}
